import Vue from 'vue'
import Router from 'vue-router'
import Member from '@/pages/Member'
import Questionnaire from '@/pages/Questionnaire'
import Mine from '@/pages/Mine'
import Answer from '@/pages/Answer'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: {
        name: 'Questionnaire'
      }
    },
    {
      path: '/member',
      name: 'Member',
      meta:{
        title:'寝室管理'
      },
      component: Member
    },
    {
      path: '/questionnaire',
      name: 'Questionnaire',
      meta:{
        title:"问卷"
      },
      component: Questionnaire
    },
    {
      path: '/questionnaire/Answer',
      name: 'Answer',
      meta:{
        title:'答题'
      },
      component:Answer 
    },
    {
      path: '/mine',
      name: 'Mine',
      meta:{
        title:"我的"
      },
      component: Mine,
    },

  ]
})
